package com.portal.sso.server.impl;

import cn.hutool.crypto.SmUtil;
import com.portal.sso.core.server.PasswordEncodeServer;

/**
 * @program: portal-sso
 * @description: 默认密码加密方式(国密对称sm3加密)
 * @author: xuduo
 * @create: 2021-04-27 22:57
 * @Version: 1.0
 **/
public class SimplePasswordEncodeServerImpl implements PasswordEncodeServer {
    @Override
    public String PwdEncode(String pwd) {
        String digestHex = SmUtil.sm3(pwd);
        return digestHex;
    }

}
